package com.fanrenqiji.modules.sys.entity;

import com.fanrenqiji.common.persistence.DataEntity;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;

/**
 * @author weihaitao E-mail:89275733@qq.com
 * @version 创建时间：2015年4月23日 下午2:20:09
 * @description
 * 系统配置实体类
 */
@Entity
@Table(name = "sys_config")
@DynamicInsert
@DynamicUpdate
public class Config extends DataEntity{
	
	private static final long serialVersionUID = 1L;

	/**
	 * 编号
	 */
	private Long id;
	/**
	 * 名称
	 */
	private String name;
	/**
	 * 标识
	 */
	private String item;
	
	/**
	 * 值
	 */
	private String value;

	/**
	 * 描述
	 */
	private String remark;
	
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getItem() {
		return item;
	}

	public void setItem(String item) {
		this.item = item;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Config() {
		super();
	}

	public Config(Long id) {
		this();
		this.id = id;
	}
	
	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	
}
